<%-- 
    Document   : header
    Created on : 15 mars 2013, 19:15:32
    Author     : Abdelali
--%>

<%@page import="EDT.api.API"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>header</title>

                
 
            <link rel="stylesheet" href="Accueil.css" />
            <link rel="SHORTCUT ICON" href="./edt.jpg" />
    </head>
    <body>
        <header> 
    <%
    
    String header ="";
        header += "<table>";
        header += "<tr>";
        header += "    <td class='hcol1'><a href='Accueil.do' target='_top'><img src='LogoNanterre.jpg' class='logo' alt='LOGO'/></a> <br/></td>";
            
        header += "    <td class='hcol2'><p>Emplois du Temps (EDT)</p></td>";
         
        if(session.getAttribute("key") != null){
            header += "    <td class='hcol3'> <a style='width:15px;height:10px;'"
                        + "  href='deconnect.do' target='section'><input style='width:140px;height:40px;' type='button' value='Se déconnecter'/>"
                        + "</a><br/>Bienvenue "+(String) session.getAttribute("prenominterv")+"</td>";
        }else{
            
            header += "    <td class='hcol3'> <a style='width:15px;height:10px;'  href='connexion.do' target='section'><input style='width:140px;height:40px;' type='button' value='Connecter'/></a></td>";
        }
        header += "</tr>";
        header += "</table>";
  
        out.println(header);
           %> 
</header>
    </body>
</html>
